package com.kakarote.hrm.entity.VO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class DeptEmployeeDataTotalVO {

    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "父级ID 顶级部门为0")
    private Long parentId;

    @ApiModelProperty(value = "父级组织")
    private String parentName;

    @ApiModelProperty(value = "1 公司 2 部门")
    private Integer deptType;

    @ApiModelProperty(value = "部门名称")
    private String name;

    @ApiModelProperty(value = "部门编码")
    private String code;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUserId;

    @ApiModelProperty(value = "部门层级")
    private Integer level;

    @ApiModelProperty(value = "部门排序号")
    private Long sortId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<DeptEmployeeDataTotalVO> children;

    @ApiModelProperty("数据完整度")
    private BigDecimal dataProgress = BigDecimal.ZERO;

    @ApiModelProperty("修改频次")
    private Long changeNumber = 0L;

    @ApiModelProperty("人员异动数")
    private Long mobilizeNumber = 0L;

    @ApiModelProperty("搜索年月")
    private String totalDate;

}
